<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="header" >
  <div  class="left-btn pointer" onClick="window.location='{$appkoudai}'"><span class="iconfont icon-back"></span></div>
  <div class="title">订单管理</div>
   
</div>
<div class="row">
  <style>
    	.tbs .item{width:20%; float:left; text-align:center; display:block; height:30px; line-height:30px;}
		.tbs .item.active{border-bottom:1px solid #f60;}
    </style>
  <div class="tbs"> <a href="{$appkoudai}?m=koudai_order&status=0" class="item {if get('status') eq 0}active{/if}">未确认</a> <a href="{$appkoudai}?m=koudai_order&status=1" class="item {if get('status') eq 1}active{/if}">待发货</a> <a href="{$appkoudai}?m=koudai_order&status=2" class="item {if get('status') eq 2}active{/if}">待完成</a> <a href="{$appkoudai}?m=koudai_order&status=3" class="item {if get('status') eq 3}active{/if}">已完成</a> <a href="{$appkoudai}?m=koudai_order&status=10" class="item {if get('status') eq 4}active{/if}">已取消</a> </div>
</div>
<div class="row">
  <form method="get" action="{$appkoudai}">
    <input type="hidden" name="m" value="koudai_order" />
    <input type="hidden" name="a" value="default" />
    <div class="pd-5" id="searchBox" style="display:none">
      <div class="input-row">
        <label >订单号</label>
        <input type="text" name="orderno" value="{$smarty.get.orderno}" />
      </div>
      <div class="input-row">
        <label>用户</label>
        <input type="text" name="nickname" value="{$smarty.get.nickname}" />
      </div>
      <div class="input-row">
        <select name="s_status" class="txt">
          <option value="-1">请选择状态</option>
          
{foreach item=c key=k from=$order_status_list}
{if $k lt 99}
          <option value="{$k}" {if $smarty.get.s_status eq $k} selected="selected" {/if}>{$c}</option>
          {/if}
{/foreach}

        </select>
      </div>
      <div class="form-btns">
        <button type="submit"   class="btn btn-warning btn-row" />
        搜索
        </button>
      </div>
    </div>
  </form>
 
	<div class="market_tabs">
    		<div class="first_item">共{$rscount}笔</div>
         
        	<ul class="last_item">
              <li class="b3"><a href="{$baseurl}&orderby=id&index={if get('orderby') eq 'id' && get('index') eq 'asc'}desc{else}asc{/if}" class="{if get('orderby') eq 'id'}cur{/if}">时间</a></li>
              <li class="b2"><i class="ico top  {if get('index') eq 'asc'}cur{/if}"></i><br>
                <i class="ico bot {if get('index') eq 'desc'}cur{/if}"></i></li>
              <li class="b1"><a href="{$baseurl}&orderby=sushe&index={if get('orderby') eq 'sushe' && get('index') eq 'desc'}asc{else}desc{/if}" class="{if get('orderby') eq 'sushe'}cur{/if}">寝室号</a></li>
            </ul>
         
    </div>
  {foreach item=sc key=scid from=$scorder}
  <div class="kdhd">{$sitecitys[$sitecitys[$scid][pid]][title]}</div>
  {foreach item=c from=$sc.order}
  <table class="kdtable">
    <tr onClick="window.location='{$appkoudai}?m=koudai_order&a=show&order_id={$c.order_id}'">
      <td class="kl">个人</td>
      <td class="km">
      	<div class="pd">
      <div class="hd"> 
      	<span class="left">{$c[address].p_c_t}-{$c[address].sushe}寝室</span> 
      	<span class="right">订单号:{$c.orderno}</span> 
      </div>
        <div class="address"><span class="left">共<span class="cor1">{$c.num}</span>件 合计￥<span class="cor1">{$c.money}</span></span> <span class="right f16">{$c[address].truename}</span> </div>
        <div class="dateline">{$c.dateline|date:Y-m-d H:i:s}</div>
         
       
        </td>
      <td class="kr">&gt</td>
    </tr>
  </table>
  {/foreach}
  {/foreach}
  {$pagelist} </div>
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script> 
<script>
$(function(){
	
	$("#showSearch").on(CLICK,function(){
		$("#searchBox").toggle();
	});
	
})
</script> 
{include file="footer.html"}
<script src="/index.php?m=reminder&a=js&tablename=koudai_order&shopid={const.SHOPID}"></script>
